Skip to content

Apply bits of the cookie settings PR one by one#140

Merged
Xe merged 12 commits intomainfrom
Xe/cookie-settings-one-by-one
Mar 27, 2025
Merged

Apply bits of the cookie settings PR one by one#140
Xe merged 12 commits intomainfrom
Xe/cookie-settings-one-by-one

Conversation

@Xe
Copy link
Copy Markdown
Contributor

@Xe Xe commented Mar 27, 2025

This is a suffering PR where I apply all of the fixes in #135 in order to see what breaks it. The browser smoke test would have caught this, so I am fixing this in CI too.

Xe added 2 commits March 27, 2025 07:23
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe self-assigned this Mar 27, 2025
Xe added 10 commits March 27, 2025 07:32
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe requested a review from Copilot March 27, 2025 18:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR progressively applies fixes from #135 to update cookie handling and improve browser testing in CI. The key changes include:

  • Converting ClearCookie to a Server method that applies the cookie domain and partitioned flag.
  • Refactoring tests to load policies separately and improve error handling and browser test retries.
  • Adding CLI flags and updating CI workflows to support the new cookie settings.

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/http.go Updated ClearCookie to include Domain from server options
lib/anubis_test.go Refactored test helpers and added validations for cookie domain and partitioning
lib/anubis.go Added cookie settings to Options and applied them when creating cookies
internal/test/playwright_test.go Modified browser tests to retry actions and return errors gracefully
docs/docs/CHANGELOG.md Updated changelog with new cookie settings and CI fixes
cmd/anubis/main.go Introduced CLI flags for cookie domain and partitioned flag
.github/workflows/go.yml Added playwright browser installation and enabled verbose testing
Files not reviewed (2)
  • docs/docs/admin/installation.mdx: Language not supported
  • internal/test/var/.gitignore: Language not supported

Comment thread internal/test/playwright_test.go
@Xe Xe force-pushed the Xe/cookie-settings-one-by-one branch from 1135694 to e095554 Compare March 27, 2025 18:58
@Xe Xe merged commit 7d4be0d into main Mar 27, 2025
4 checks passed
JasonLovesDoggo pushed a commit to JasonLovesDoggo/anubis that referenced this pull request Jun 17, 2025
Enables uses to change the cookie domain and partitioned flags.

Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe deleted the Xe/cookie-settings-one-by-one branch July 2, 2025 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants